package com.coding.controller;

import com.coding.base.pojo.BaseModel;
import com.coding.service.PoempkService;
import com.wordnik.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @auther wangchenghao
 * @date 2020/9/23
 **/

@Controller
@ResponseBody
@RequestMapping("poempk")
public class PoemPkController {
    @Autowired
    PoempkService poempkService;

    @ApiOperation("获得PK双方信息")
    @RequestMapping(value = "/getInfo", method = {RequestMethod.GET})
    public BaseModel getInfo() throws Exception {
        BaseModel model = new BaseModel();
        poempkService.getPoekInfo(model);
        return model;
    }
}
